//Author: Ferdinand Eisenkeil, Soeren Pirk
//Date  : 23.04.2014

#ifndef BOX
#define BOX

#include "Common.h"
#include "Renderable.h"

class VertexBufferObjectAttribs;
class Shader;

class Box : public Renderable
{
public:
    Box();
    Box(vec3 pos, vec3 scale, vec3 color);
    ~Box();

    void init();
    void render(const Transform &trans);
	void reloadShader();
	
private:

    void buildVBO(const vec3 &mi, const vec3 &ma, float red, float green, float blue, float alpha);

private:

    VertexBufferObjectAttribs *m_vbo;

    Shader *m_shader;

    vec3 m_position;
    vec3 m_color;
    vec3 m_scale;
    bool m_showMesh;
};

#endif